g++ mkd.cpp -o mkd -g
g++ judge.cpp -o judge -g
g++ test.cpp -o test -g
:loop
    mkd.exe > 1.txt
    judge < 1.txt > 2.txt
    test  < 1.txt > 3.txt
    fc 2.txt 3.txt
if not errorlevel 1 goto loop
pause
goto loop